#!/bin/bash

cmd_output=$(ls | cat -n)
echo $cmd_output

cmd_output=`ls | cat -n`
echo $cmd_output

pwd                             #print work directory
(cd ..; ls; pwd)
pwd
